package com.demo2do.fms.admin.dao.business;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.business.shipment.TransportCost;

/**
 * 
 * @author wangliwang
 *
 */
@Dao("hibernate")
public interface TransportCostDao {

    /**
     * load transport_cost by dispatch_order_id
     * 
     * @param dispatchOrderId
     * @return
     */
    @Query("FROM TransportCost WHERE dispatchOrderId = :dispatchOrderId")
    public TransportCost load(@Variable("dispatchOrderId") Long dispatchOrderId);
    
    /**
     * 
     * @param dispatchOrderIds
     * @return
     */
    @Query("FROM TransportCost WHERE dispatchOrderId in (:dispatchOrderIds)")
    public List<TransportCost> list(@Variable("dispatchOrderIds") List<Long> dispatchOrderIds);
    
}
